﻿using System.Collections.Generic;
using System.Web.Mvc;
using Cnm.Mvc.Models.Localization;
using Cnm.Mvc.Models.Mvc;

namespace Cnm.Models.Admins
{
    public partial class ProductModel : BaseNopEntityModel, ILocalizedModel<ProductLocalizedModel>
    {
        public ProductModel()
        {
            Locales = new List<ProductLocalizedModel>();
        }

        public override int Id { get; set; }

        [AllowHtml]
        public string Name { get; set; }

        [AllowHtml]
        public string ShortDescription { get; set; }

        [AllowHtml]
        public string FullDescription { get; set; }

        public int DisplayOrder { get; set; }

        public IList<ProductLocalizedModel> Locales { get; set; }

        [AllowHtml]
        public string SeName { get; set; }

    }

    public partial class ProductLocalizedModel : ILocalizedModelLocal
    {
        public int LanguageId { get; set; }

        [AllowHtml]
        public string Name { get; set; }

        [AllowHtml]
        public string ShortDescription { get; set; }

        [AllowHtml]
        public string FullDescription { get; set; }

        [AllowHtml]
        public string MetaKeywords { get; set; }

        [AllowHtml]
        public string MetaDescription { get; set; }
        [AllowHtml]
        public string MetaTitle { get; set; }


        [AllowHtml]
        public string SeName { get; set; }
    }
}
